<?php
$tdatatbl_lien_he=array();
	$tdatatbl_lien_he[".NumberOfChars"]=80; 
	$tdatatbl_lien_he[".ShortName"]="tbl_lien_he";
	$tdatatbl_lien_he[".OwnerID"]="";
	$tdatatbl_lien_he[".OriginalTable"]="tbl_lien_he";


	
//	field labels
$fieldLabelstbl_lien_he = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_lien_he["English"]=array();
	$fieldToolTipstbl_lien_he["English"]=array();
	$fieldLabelstbl_lien_he["English"]["id"] = "Id";
	$fieldToolTipstbl_lien_he["English"]["id"] = "";
	$fieldLabelstbl_lien_he["English"]["cong_ty"] = "Cong Ty";
	$fieldToolTipstbl_lien_he["English"]["cong_ty"] = "";
	$fieldLabelstbl_lien_he["English"]["nguoi_lien_he"] = "Nguoi Lien He";
	$fieldToolTipstbl_lien_he["English"]["nguoi_lien_he"] = "";
	$fieldLabelstbl_lien_he["English"]["email"] = "Email";
	$fieldToolTipstbl_lien_he["English"]["email"] = "";
	$fieldLabelstbl_lien_he["English"]["dia_chi"] = "Dia Chi";
	$fieldToolTipstbl_lien_he["English"]["dia_chi"] = "";
	$fieldLabelstbl_lien_he["English"]["tinh_thanh_pho"] = "Tinh Thanh Pho";
	$fieldToolTipstbl_lien_he["English"]["tinh_thanh_pho"] = "";
	$fieldLabelstbl_lien_he["English"]["dien_thoai"] = "Dien Thoai";
	$fieldToolTipstbl_lien_he["English"]["dien_thoai"] = "";
	$fieldLabelstbl_lien_he["English"]["fax"] = "Fax";
	$fieldToolTipstbl_lien_he["English"]["fax"] = "";
	$fieldLabelstbl_lien_he["English"]["tieu_de"] = "Tieu De";
	$fieldToolTipstbl_lien_he["English"]["tieu_de"] = "";
	$fieldLabelstbl_lien_he["English"]["noi_dung_lien_he"] = "Noi Dung Lien He";
	$fieldToolTipstbl_lien_he["English"]["noi_dung_lien_he"] = "";
	if (count($fieldToolTipstbl_lien_he["English"])){
		$tdatatbl_lien_he[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_lien_he[".NCSearch"]=true;

	

$tdatatbl_lien_he[".shortTableName"] = "tbl_lien_he";
$tdatatbl_lien_he[".nSecOptions"] = 0;
$tdatatbl_lien_he[".recsPerRowList"] = 1;	
$tdatatbl_lien_he[".tableGroupBy"] = "0";
$tdatatbl_lien_he[".mainTableOwnerID"] = "";
$tdatatbl_lien_he[".moveNext"] = 1;




$tdatatbl_lien_he[".showAddInPopup"] = false;

$tdatatbl_lien_he[".showEditInPopup"] = false;

$tdatatbl_lien_he[".showViewInPopup"] = false;


$tdatatbl_lien_he[".fieldsForRegister"] = array();
	
$tdatatbl_lien_he[".listAjax"] = false;

	$tdatatbl_lien_he[".audit"] = true;

	$tdatatbl_lien_he[".locking"] = false;
	
$tdatatbl_lien_he[".listIcons"] = true;
$tdatatbl_lien_he[".edit"] = true;
$tdatatbl_lien_he[".inlineEdit"] = true;
$tdatatbl_lien_he[".view"] = true;

$tdatatbl_lien_he[".exportTo"] = true;

$tdatatbl_lien_he[".printFriendly"] = true;

$tdatatbl_lien_he[".delete"] = true;

$tdatatbl_lien_he[".showSimpleSearchOptions"] = false;

$tdatatbl_lien_he[".showSearchPanel"] = true;


$tdatatbl_lien_he[".isUseAjaxSuggest"] = true;

$tdatatbl_lien_he[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_lien_he[".addPageEvents"] = false;

$tdatatbl_lien_he[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_lien_he[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_lien_he[".isUseTimeForSearch"] = false;

$tdatatbl_lien_he[".isUseiBox"] = false;



$tdatatbl_lien_he[".isUseInlineAdd"] = true;

$tdatatbl_lien_he[".isUseInlineEdit"] = true;
$tdatatbl_lien_he[".isUseInlineJs"] = $tdatatbl_lien_he[".isUseInlineAdd"] || $tdatatbl_lien_he[".isUseInlineEdit"];

$tdatatbl_lien_he[".allSearchFields"] = array();

$tdatatbl_lien_he[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "id";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "cong_ty";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("cong_ty", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "cong_ty";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "nguoi_lien_he";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("nguoi_lien_he", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "nguoi_lien_he";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "email";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "dia_chi";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("dia_chi", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "dia_chi";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "tinh_thanh_pho";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tinh_thanh_pho", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "tinh_thanh_pho";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "dien_thoai";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("dien_thoai", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "dien_thoai";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "fax";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "fax";	
}
$tdatatbl_lien_he[".globSearchFields"][] = "tieu_de";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de", $tdatatbl_lien_he[".allSearchFields"]))
{
	$tdatatbl_lien_he[".allSearchFields"][] = "tieu_de";	
}


$tdatatbl_lien_he[".googleLikeFields"][] = "id";
$tdatatbl_lien_he[".googleLikeFields"][] = "cong_ty";
$tdatatbl_lien_he[".googleLikeFields"][] = "nguoi_lien_he";
$tdatatbl_lien_he[".googleLikeFields"][] = "email";
$tdatatbl_lien_he[".googleLikeFields"][] = "dia_chi";
$tdatatbl_lien_he[".googleLikeFields"][] = "tinh_thanh_pho";
$tdatatbl_lien_he[".googleLikeFields"][] = "dien_thoai";
$tdatatbl_lien_he[".googleLikeFields"][] = "fax";
$tdatatbl_lien_he[".googleLikeFields"][] = "tieu_de";



$tdatatbl_lien_he[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "id";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "cong_ty";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("cong_ty", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "cong_ty";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "nguoi_lien_he";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("nguoi_lien_he", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "nguoi_lien_he";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "email";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "dia_chi";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("dia_chi", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "dia_chi";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "tinh_thanh_pho";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tinh_thanh_pho", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "tinh_thanh_pho";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "dien_thoai";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("dien_thoai", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "dien_thoai";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "fax";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fax", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "fax";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "tieu_de";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("tieu_de", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "tieu_de";	
}
$tdatatbl_lien_he[".advSearchFields"][] = "noi_dung_lien_he";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung_lien_he", $tdatatbl_lien_he[".allSearchFields"])) 
{
	$tdatatbl_lien_he[".allSearchFields"][] = "noi_dung_lien_he";	
}

$tdatatbl_lien_he[".isTableType"] = "list";


	

$tdatatbl_lien_he[".isDisplayLoading"] = true;

$tdatatbl_lien_he[".isResizeColumns"] = false;





$tdatatbl_lien_he[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_lien_he[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_lien_he[".orderindexes"] = array();

$tdatatbl_lien_he[".sqlHead"] = "SELECT id,  cong_ty,  nguoi_lien_he,  email,  dia_chi,  tinh_thanh_pho,  dien_thoai,  fax,  tieu_de,  noi_dung_lien_he";
$tdatatbl_lien_he[".sqlFrom"] = "FROM tbl_lien_he";
$tdatatbl_lien_he[".sqlWhereExpr"] = "";
$tdatatbl_lien_he[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_lien_he[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_lien_he[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_lien_he[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["id"]=$fdata;
//	cong_ty
	$fdata = array();
	$fdata["strName"] = "cong_ty";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Cong Ty"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "cong_ty";
	
		$fdata["FullName"]= "cong_ty";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["cong_ty"]=$fdata;
//	nguoi_lien_he
	$fdata = array();
	$fdata["strName"] = "nguoi_lien_he";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Nguoi Lien He"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "nguoi_lien_he";
	
		$fdata["FullName"]= "nguoi_lien_he";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["nguoi_lien_he"]=$fdata;
//	email
	$fdata = array();
	$fdata["strName"] = "email";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Email"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "email";
	
		$fdata["FullName"]= "email";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Email");	
						
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["email"]=$fdata;
//	dia_chi
	$fdata = array();
	$fdata["strName"] = "dia_chi";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Dia Chi"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "dia_chi";
	
		$fdata["FullName"]= "dia_chi";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["dia_chi"]=$fdata;
//	tinh_thanh_pho
	$fdata = array();
	$fdata["strName"] = "tinh_thanh_pho";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Tinh Thanh Pho"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tinh_thanh_pho";
	
		$fdata["FullName"]= "tinh_thanh_pho";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["tinh_thanh_pho"]=$fdata;
//	dien_thoai
	$fdata = array();
	$fdata["strName"] = "dien_thoai";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Dien Thoai"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "dien_thoai";
	
		$fdata["FullName"]= "dien_thoai";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["dien_thoai"]=$fdata;
//	fax
	$fdata = array();
	$fdata["strName"] = "fax";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Fax"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fax";
	
		$fdata["FullName"]= "fax";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["fax"]=$fdata;
//	tieu_de
	$fdata = array();
	$fdata["strName"] = "tieu_de";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Tieu De"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "tieu_de";
	
		$fdata["FullName"]= "tieu_de";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=200";
			$fdata["EditParams"].= " size=60";
	
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["tieu_de"]=$fdata;
//	noi_dung_lien_he
	$fdata = array();
	$fdata["strName"] = "noi_dung_lien_he";
	$fdata["ownerTable"] = "tbl_lien_he";
		$fdata["Label"]="Noi Dung Lien He"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "Database Image";
	
		
		
			$fdata["ImageWidth"] = 0;
	$fdata["ImageHeight"] = 0;
	
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "noi_dung_lien_he";
	
		$fdata["FullName"]= "noi_dung_lien_he";
	
		
		
		
		
		
				$fdata["Index"]= 10;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=150";
		$fdata["nRows"] = 150;
			$fdata["EditParams"].= " cols=300";
		$fdata["nCols"] = 300;
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
		
				//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_lien_he["noi_dung_lien_he"]=$fdata;

	
$tables_data["tbl_lien_he"]=&$tdatatbl_lien_he;
$field_labels["tbl_lien_he"] = &$fieldLabelstbl_lien_he;
$fieldToolTips["tbl_lien_he"] = &$fieldToolTipstbl_lien_he;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_lien_he"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_lien_he"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  cong_ty,  nguoi_lien_he,  email,  dia_chi,  tinh_thanh_pho,  dien_thoai,  fax,  tieu_de,  noi_dung_lien_he";
$proto0["m_strFrom"] = "FROM tbl_lien_he";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_lien_he"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "cong_ty",
	"m_strTable" => "tbl_lien_he"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "nguoi_lien_he",
	"m_strTable" => "tbl_lien_he"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "email",
	"m_strTable" => "tbl_lien_he"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "dia_chi",
	"m_strTable" => "tbl_lien_he"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "tinh_thanh_pho",
	"m_strTable" => "tbl_lien_he"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "dien_thoai",
	"m_strTable" => "tbl_lien_he"
));

$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "fax",
	"m_strTable" => "tbl_lien_he"
));

$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "tieu_de",
	"m_strTable" => "tbl_lien_he"
));

$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung_lien_he",
	"m_strTable" => "tbl_lien_he"
));

$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto25=array();
$proto25["m_link"] = "SQLL_MAIN";
			$proto26=array();
$proto26["m_strName"] = "tbl_lien_he";
$proto26["m_columns"] = array();
$proto26["m_columns"][] = "id";
$proto26["m_columns"][] = "cong_ty";
$proto26["m_columns"][] = "nguoi_lien_he";
$proto26["m_columns"][] = "email";
$proto26["m_columns"][] = "dia_chi";
$proto26["m_columns"][] = "tinh_thanh_pho";
$proto26["m_columns"][] = "dien_thoai";
$proto26["m_columns"][] = "fax";
$proto26["m_columns"][] = "tieu_de";
$proto26["m_columns"][] = "noi_dung_lien_he";
$obj = new SQLTable($proto26);

$proto25["m_table"] = $obj;
$proto25["m_alias"] = "";
$proto27=array();
$proto27["m_sql"] = "";
$proto27["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto27["m_column"]=$obj;
$proto27["m_contained"] = array();
$proto27["m_strCase"] = "";
$proto27["m_havingmode"] = "0";
$proto27["m_inBrackets"] = "0";
$proto27["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto27);

$proto25["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto25);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

$queryData_tbl_lien_he = $obj;
$tdatatbl_lien_he[".sqlquery"] = $queryData_tbl_lien_he;

$tableEvents["tbl_lien_he"] = new eventsBase;

?>
